<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:54:"E:\WWW\WWW\shuadan/wstmart/admin\view\renwu2\list.html";i:1544086401;s:47:"E:\WWW\WWW\shuadan/wstmart/admin\view\base.html";i:1543820519;}*/ ?>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>后台管理中心 - <?php echo WSTConf('CONF.mallName'); ?></title>
<meta name="Keywords" content=""/>
<meta name="Description" content=""/> 
<link href="__ADMIN__/js/ligerui/skins/Aqua/css/ligerui-all.css?v=<?php echo $v; ?>" rel="stylesheet" type="text/css" /> 
<link href="__STATIC__/plugins/validator/jquery.validator.css?v=<?php echo $v; ?>" rel="stylesheet">

<link href="__ADMIN__/css/style.css?v=<?php echo $v; ?>" rel="stylesheet" type="text/css" />   
<script src="__STATIC__/js/jquery.min.js?v=<?php echo $v; ?>"></script>  
<script src="__ADMIN__/js/ligerui/js/ligerui.all.js?v=<?php echo $v; ?>" type="text/javascript"></script> 
<script type='text/javascript' src='__STATIC__/plugins/layer/layer.js?v=<?php echo $v; ?>'></script> 
<script src="__STATIC__/js/common.js?v=<?php echo $v; ?>"></script>
<script>
window.conf = {"ROOT":"__ROOT__","APP":"__APP__","STATIC":"__STATIC__","SUFFIX":"<?php echo config('url_html_suffix'); ?>","GOODS_LOGO":"<?php echo WSTConf('CONF.goodsLogo'); ?>","SHOP_LOGO":"<?php echo WSTConf('CONF.shopLogo'); ?>","MALL_LOGO":"<?php echo WSTConf('CONF.mallLogo'); ?>","USER_LOGO":"<?php echo WSTConf('CONF.userLogo'); ?>",'GRANT':'<?php echo implode(",",session("WST_STAFF.privileges")); ?>'}
</script>
<script src="__ADMIN__/js/common.js?v=<?php echo $v; ?>"></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.js?v=<?php echo $v; ?>"></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/local/zh-CN.js?v=<?php echo $v; ?>"></script>
</head>
<body>

<div class="l-loading" style="display: block" id="wst-loading"></div>
<div class="wst-toolbar">
   <div class="wst-body">
      <div class="wst-shop-head"><span>数据导入</span></div>
      <table class="table table-hover table-striped table-bordered wst-form">
         <tr>
            <td colspan='2' style='color:#707070;padding-left:25px;padding-top:5px;'>
               • 请勿重复上传, 否则将造成重复任务数据<br/>
               • 请保证导入的数据在Excel的第一个工作表(Sheet)<br/>
               • 若Excel上某一行第一列为空则代表商品数据导入完毕<br/>
               • 若没有数据模板，请点击<a href='__STATIC__/template/renwu.xlsx' style='color:blue;' target='_blank'>下载Excel模板</a></a><br/>
               • 推荐使用谷歌浏览器或者火狐浏览器Firefox以获得更佳体验
            </td>
         </tr>
         <tr>
            <th align='right' width='90'>商品数据：</th>
            <td>
               <div id="filePicker" style='margin-left:0px;'>导入任务数据</div>
            </td>
         </tr>
      </table>
   </div>

   放单时间：<input type="text" id="star_time" name="star_time"  class='j-ipt' />-
   <input type="text" id="end_time"  name="end_time" class='j-ipt'  />
   &nbsp;&nbsp;&nbsp;&nbsp;淘宝：<input type="text" name="taobao"  placeholder='淘宝' id="taobao" class='j-ipt'/>
   <button class="btn btn-green f-right" onclick='javascript:toExport(0)'>导出</button>
   <!--<button class="btn btn-green f-right" id="filePicker" style="margin-right: 10px;">导入数据</button>-->

   <button class="btn btn-blue" onclick='javascript:loadAuditGrid(0)'>查询</button>

</div>
<?php if(WSTGrant('DPGL_01')): ?>
<div class="wst-toolbar">
   <button class="btn btn-green f-right" onclick='javascript:toEdit(0)'>新增</button>
   <div style='clear:both'></div>
</div>
<?php endif; ?>
<div id="maingrid"></div>
<script type='text/javascript' src='__STATIC__/plugins/webuploader/webuploader.js?v=<?php echo $v; ?>'></script>
<script>
$(function(){
	initGrid();
   //时间插件
   $("#star_time").ligerDateEditor({format: "yyyy-MM-dd hh:mm:ss",showTime : true}).setValue("");
   $("#end_time").ligerDateEditor({format: "yyyy-MM-dd hh:mm:ss",showTime : true}).setValue("");
   var uploading = null;
   $(function(){
      var uploader = WST.upload({
         server:"<?php echo url('admin/renwu2/importGoods'); ?>",pick:'#filePicker',
         formData: {dir:'temp'},
         callback:function(f,file){
            layer.close(uploading);
            uploader.removeFile(file);
            var json = f;
            if(json.status==1){
               uploader.refresh();
               WST.msg('导入数据成功!已导入数据'+json.importNum+"条", {icon: 1});
            }else{
               WST.msg('导入数据失败,出错原因：'+json.msg, {icon: 5});
            }
         },
         progress:function(rate){
            uploading = WST.msg('正在导入数据，请稍后...');
         }
      });
   });

})
</script>


<script src="__ADMIN__/renwu2/shops.js?v=<?php echo $v; ?>xx" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/webuploader/webuploader.css?v=<?php echo $v; ?>" />
<style>
   .l-text-wrapper{display: inline-block;}
</style>

<script>
function showImg(opt){
	layer.photos(opt);
}
function showBox(opts){
	return WST.open(opts);
}
</script>
</body>
</html>